<?php

namespace App\Models;

use Jenssegers\Mongodb\Eloquent\Model;

class Log extends Model
{
    protected $connection = 'mongodb';  //连接名
    protected $collection = 'log';     //集合名称
    protected $primaryKey = '_id';    //设置id
    public $timestamps = false;
    protected $fillable = ['content','name', 'user_id', 'table', 'method', 'request_url', 'create_time'];  //设置字段白名单

}
